export const routes = [
  {
    path: '/',
    redirect: '/home',
    children: [
      {
        path: '',
        component: () => import('@/layouts/index.vue'),
        redirect:'/home',
        children: [
          {
            path: '/home',
            name: 'home',
            component: () => import('@/views/Home.vue'),
            meta: {
              title: '首页',
              keepAlive: true,
            }
          },
          {
            path: '/about',
            name: 'about',
            component: () => import('@/views/About.vue'),
            meta: {
              title: '关于',
              keepAlive: true
            }
          },
          {
            path: '/list',
            name: 'list',
            component: () => import('@/views/List.vue'),
            meta: {
              title: '列表',
            }
          },
          {
            path: '/split',
            name: 'split',
            component: () => import('@/views/Split.vue'),
            meta: {
              title: '分割',
              keepAlive: true
            }
          },
          {
            path: '/charts',
            name: 'charts',
            component: () => import('@/views/Charts.vue'),
            meta: {
              title: '图表',
              keepAlive: true
            }
          },
          {
            path: '/json',
            name: 'json',
            component: () => import('@/views/Json.vue'),
            meta: {
              title: 'json',
              keepAlive: true
            }
          },
          {
            path: '/markdown',
            name: 'markdown',
            component: () => import('@/views/Markdown.vue'),
            meta: {
              title: 'markdown',
              keepAlive: true
            }
          },
          {
            path: '/rich-text',
            name: 'rich-text',
            component: () => import('@/views/RichText.vue'),
            meta: {
              title: '富文本',
              keepAlive: true
            }
          },
          {
            path: '/table',
            name: 'table',
            component: () => import('@/views/Table.vue'),
            meta: {
              title: '表格',
              keepAlive: true
            }
          },
          {
            path: '/dependencies',
            name: 'dependencies',
            component: () => import('@/views/Dependencies.vue'),
            meta: {
              title: '依赖',
              keepAlive: true
            }
          },
          {
            path: '/file',
            name: 'file',
            component: () => import('@/views/File.vue'),
            meta: {
              title: '文件解析',
              keepAlive: true
            }
          },
          {
            path: '/file-picker',
            name: 'file-picker',
            component: () => import('@/views/FilePicker.vue'),
            meta: {
              title: '文件选择',
              keepAlive: true
            }
          },
          {
            path: '/chat',
            name: 'chat',
            component: () => import('@/views/Chat.vue'),
            meta: {
              title: '在线客服',
              keepAlive: true
            }
          },
          {
            path: '/setting',
            name: 'setting',
            component: () => import('@/views/Setting'),
            meta: {
              title: '设置',
              keepAlive: true,
              hide: true
            }
          },
        ]
      },
      
      {
        path: '/login',
        name: 'login',
        component: () => import('@/views/Login.vue'),
        meta: {
          title: '登录',
          keepAlive: true
        }
      },
      {
        path: '/clock',
        name: 'clock',
        component: () => import('@/views/DeskClock.vue'),
        meta: {
          title: '时钟',
          keepAlive: true,
          hideProgress: true
        }
      },
    ]
  },
]